import Vue from "vue";
import App from "./App.vue";
import router from "@/router/index";
import store from "@/store/index";
import TypeNav from "@/components/TypeNav";
import "@/mock/index";
import Swiper from "@/components/Swiper";
import Pagenation from "@/components/Pagenation";

Vue.config.productionTip = false;

Vue.component("TypeNav", TypeNav);

Vue.component("Swiper", Swiper);

Vue.component("Pagenation", Pagenation);

new Vue({
    render: (h) => h(App),
    router: router,
    store: store,
    //事件总线
    beforeCreate() {
        Vue.prototype.$bus = this;
    },
}).$mount("#app");
